<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="/static/js/jquery-1.11.0.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
    {% verbatim myblock %}
    <div id="content">
        {{ message }}
        <br><hr>

        {{ project }}
        <br><hr>

        <a v-bind:href="link">按我呀</a>
        <br><hr>

        <ul>
            <li v-for="number in project">{{ number }}</li>
        </ul>
        <br><hr>

        <a v-bind:href="link" v-if="user">按我呀</a>
        <br><hr>

        <a v-on:click="say_hello" v-if="user">按我呀</a>
        <br><hr>

        <input v-model="message">
        <p>{{ message }}</p>
    </div>
    {% endverbatim myblock %}

    <script>
        var app = new Vue({
          el: '#content',
          data: {
          message: 'Hello Vue!',
          project:[1,2,3,4,5,6],
          link:'https://www.baidu.com/',
          user:1
          },
            methods:{
              say_hello:function () {
                  alert('hello world')
              }
            }
        })
    </script>
</body>
</html>